package com.yaodian100.ec.member.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_MEMBER_DISTRICT")
public class District extends BaseEntity {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -1255667913299305621L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_district")
	@SequenceGenerator(name = "seq_ec_member_district", sequenceName = "SEQ_EC_MEMBER_DISTRICT")
	@Column(name = "ID")
	private Long id;

	@Column(name = "NAME", length = 20, nullable = false)
	private String name;

	@Column(name = "CITY_ID")
	private int cityId;

	@Column(name = "CITY_NAME")
	private String cityName;

	@Column(name = "ZIP")
	private String zip;

	@Column(name = "ID_COD", length = 1, nullable = false)
	private String isCod;

	@Column(name = "IS_CAKE", length = 1, nullable = false)
	private String isCake;

	@Column(name = "IS_FLOWER", length = 1, nullable = false)
	private String isFlower;

	@Column(name = "SHOW_SEQ", nullable = false)
	private int showSeq;

	/**
	 * 是否已刪除,default=N
	 */
	@Column(name = "IS_DELETE", columnDefinition = "VARCHAR2(2 CHAR) default 'N'")
	private String isDelete;

	// 服务区域
	@Column(name = "service_support", length = 900)
	private String serviceSupport;

	// 不服务区域
	@Column(name = "non_service_support", length = 900)
	private String nonServiceSupport;

	/**
	 * 是否POS,default=N
	 */
	@Column(name = "IS_POS", columnDefinition = "VARCHAR2(2 CHAR) default 'N'")
	private String isPos;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getCityId() {
		return cityId;
	}

	public void setCityId(int cityId) {
		this.cityId = cityId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getIsCod() {
		return isCod;
	}

	public void setIsCod(String isCod) {
		this.isCod = isCod;
	}

	public String getIsCake() {
		return isCake;
	}

	public void setIsCake(String isCake) {
		this.isCake = isCake;
	}

	public String getIsFlower() {
		return isFlower;
	}

	public void setIsFlower(String isFlower) {
		this.isFlower = isFlower;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getServiceSupport() {
		return serviceSupport;
	}

	public void setServiceSupport(String serviceSupport) {
		this.serviceSupport = serviceSupport;
	}

	public String getNonServiceSupport() {
		return nonServiceSupport;
	}

	public void setNonServiceSupport(String nonServiceSupport) {
		this.nonServiceSupport = nonServiceSupport;
	}

	public String getIsPos() {
		return isPos;
	}

	public void setIsPos(String isPos) {
		this.isPos = isPos;
	}

}